package com.key.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.key.modules.cache.MybatisCache;
import com.key.modules.dto.CarrierDTO;
import com.key.modules.entity.CarrierContract;
import com.key.modules.vo.CarrierVO;
import com.key.modules.vo.CarriersVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@CacheNamespace(implementation = MybatisCache.class,eviction= MybatisCache.class)
public interface CarrierContractMapper extends BaseMapper<CarrierContract> {
    Page<CarrierVO> selectCarrierContractByDTO(@Param("page") Page<CarrierVO> page, @Param("carrierDTO") CarrierDTO carrierDTO);

    CarrierContract selectCarrierById(Integer id);
}
